home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 March / EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso / internet / others / amipop118.lha / AmiPOP118 / source / asyncio_protos.h next >
C/C++ Source or Header  |  1995-09-19  |  2KB  |  82 lines

  1. #ifndef CLIB_ASYNCIO_PROTOS_H
  2. #define CLIB_ASYNCIO_PROTOS_H
  3.  
  4. #ifndef LIBRARIES_ASYNCIO_H
  5. #include "asyncio.h"
  6. #endif
  7.  
  8.  
  9. /*****************************************************************************/
  10.  
  11.  
  12. #ifdef _DCC
  13.  
  14. #define _REG(x)    __ ## x
  15. #define _ASM
  16. #define _ARGS __regargs
  17.  
  18. #else
  19.  
  20. #ifdef __GNUC__
  21.  
  22. #define _REG(x)
  23. #define _ASM
  24.  
  25. #else /* __SASC__ */
  26.  
  27. /*#define _REG(x)    register __ ## x
  28. #define _ASM    __asm
  29. #define _ARGS    __regargs*/
  30. #define _REG(x)
  31. #define _ASM
  32. #define _ARGS
  33.  
  34. #endif /* __GNUC__ */
  35.  
  36. #endif /* _DCC */
  37.  
  38.  
  39. #ifndef ASIO_SHARED_LIB
  40. #ifndef ASIO_REGARGS
  41. #undef _REG(x)
  42. #define _REG(x)
  43. #undef _ASM
  44. #define _ASM
  45.  
  46. #ifdef _DCC
  47. #undef _ARGS
  48. #define _ARGS __stkargs
  49. #else
  50. #ifdef __GNUC__
  51. #undef _ARGS
  52. #else /* __SASC__ */
  53. #undef _ARGS
  54. #define _ARGS __stdargs
  55. #endif /* __GNUC__ */
  56. #endif /* _DCC */
  57. #endif
  58.  
  59. #endif
  60.  
  61.  
  62. /*****************************************************************************/
  63.  
  64.  
  65. #ifdef NOEXTERNALS
  66. _ASM _ARGS AsyncFile *OpenAsync( _REG( a0 ) const STRPTR fileName,_REG( d0 ) OpenModes mode, _REG( d1 ) LONG bufferSize, _REG( a1 ) struct ExecBase *SysBase, _REG( a2 ) struct DosLibrary *DOSBase );
  67. _ASM _ARGS AsyncFile *OpenAsyncFromFH( _REG( a0 ) BPTR handle, _REG( d0 ) OpenModes mode, _REG( d1 ) LONG bufferSize, _REG( a1 ) struct ExecBase *SysBase, _REG( a2 ) struct DosLibrary *DOSBase );
  68. #else
  69. _ASM _ARGS AsyncFile *OpenAsync( _REG( a0 ) const STRPTR fileName,_REG( d0 ) OpenModes mode, _REG( d1 ) LONG bufferSize );
  70. _ASM _ARGS AsyncFile *OpenAsyncFromFH( _REG( a0 ) BPTR handle, _REG( d0 ) OpenModes mode, _REG( d1 ) LONG bufferSize );
  71. #endif
  72. _ASM _ARGS LONG       CloseAsync( _REG( a0 ) AsyncFile *file );
  73. _ASM _ARGS LONG       ReadAsync( _REG( a0 ) AsyncFile *file, _REG( a1 ) APTR buffer, _REG( d0 ) LONG numBytes );
  74. _ASM _ARGS LONG       ReadCharAsync( _REG( a0 ) AsyncFile *file );
  75. _ASM _ARGS LONG       ReadLineAsync( _REG( a0 ) AsyncFile *file, _REG( a1 ) STRPTR buffer, _REG( d0 ) LONG size );
  76. _ASM _ARGS LONG       WriteAsync( _REG( a0 ) AsyncFile *file, _REG( a1 ) APTR buffer, _REG( d0 ) LONG numBytes );
  77. _ASM _ARGS LONG       WriteCharAsync( _REG( a0 ) AsyncFile *file, _REG( d0 ) UBYTE ch );
  78. _ASM _ARGS LONG       WriteLineAsync( _REG( a0 ) AsyncFile *file, _REG( a1 ) STRPTR line );
  79. _ASM _ARGS LONG       SeekAsync( _REG( a0 ) AsyncFile *file, _REG( d0 ) LONG position, _REG( d1 ) SeekModes mode);
  80.  
  81. #endif
  82.